import 'package:flutter/material.dart';

class DefaultScrollBarView extends StatelessWidget {
  const DefaultScrollBarView(
      {super.key,
      required this.child,
      this.controller,
      this.padding,
      this.height,
      this.thickness});

  final Widget? child;
  final ScrollController? controller;
  final double? height;
  final EdgeInsetsGeometry? padding;
  final double? thickness;
  @override
  Widget build(BuildContext context) {
    return Scrollbar(
        controller: controller,
        radius: const Radius.circular(15),
        thickness: 10,
        interactive: true,
        child: Container(
          height: height,
          padding: padding,
          child: SingleChildScrollView(
            controller: controller,
            child: child,
          ),
        ));
  }
}
